package org.example.platform.design.xiangyuan;

import com.alibaba.fastjson2.JSON;


/**
 * 享元模式
 */
public class Test {
    private static ActivityController activityController = new ActivityController();

    public static void main(String[] args) throws InterruptedException {
        for (int idx = 0; idx < 10; idx++) {
            Long req = 10001L;
            Activity activity = activityController.queryActivityInfo(req);
            System.out.println("测试结果：{} {}"+ req + "---"+ JSON.toJSONString(activity));
            Thread.sleep(1200);
        }
    }


}
